package cn.hx.mall.sell.entity;

import cn.hx.mall.goods.entity.Product;

import java.io.Serializable;

/**
 * 商品限时购与商品关系表(SmsFlashPromotionProductRelation)实体类
 *
 * @author makejava
 * @since 2022-11-02 16:10:29
 */
public class SmsFlashPromotionProductRelation implements Serializable {
    private static final long serialVersionUID = -71412610742908452L;
    /**
     * 编号
     */
    private Long id;
    /**
     * 活动编号
     */
    private Long flashPromotionId;
    /**
     * 活动
     */
    private FlashPromotion flashPromotion;
    /**
     * 场次编号
     */
    private Long flashPromotionSessionId;
    /**
     * 场次
     */
    private SmsFlashPromotionSession flashPromotionSession;
    /**
     * 产品编号
     */
    private Long productId;
    /**
     * 产品
     */
    private Product product;
    /**
     * 限时购价格
     */
    private Double flashPromotionPrice;
    /**
     * 限时购数量
     */
    private Integer flashPromotionCount;
    /**
     * 每人限购数量
     */
    private Integer flashPromotionLimit;
    /**
     * 排序
     */
    private Integer sort;

    public FlashPromotion getFlashPromotion() {
        return flashPromotion;
    }

    public void setFlashPromotion(FlashPromotion flashPromotion) {
        this.flashPromotion = flashPromotion;
    }

    public SmsFlashPromotionSession getFlashPromotionSession() {
        return flashPromotionSession;
    }

    public void setFlashPromotionSession(SmsFlashPromotionSession flashPromotionSession) {
        this.flashPromotionSession = flashPromotionSession;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFlashPromotionId() {
        return flashPromotionId;
    }

    public void setFlashPromotionId(Long flashPromotionId) {
        this.flashPromotionId = flashPromotionId;
    }

    public Long getFlashPromotionSessionId() {
        return flashPromotionSessionId;
    }

    public void setFlashPromotionSessionId(Long flashPromotionSessionId) {
        this.flashPromotionSessionId = flashPromotionSessionId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Double getFlashPromotionPrice() {
        return flashPromotionPrice;
    }

    public void setFlashPromotionPrice(Double flashPromotionPrice) {
        this.flashPromotionPrice = flashPromotionPrice;
    }

    public Integer getFlashPromotionCount() {
        return flashPromotionCount;
    }

    public void setFlashPromotionCount(Integer flashPromotionCount) {
        this.flashPromotionCount = flashPromotionCount;
    }

    public Integer getFlashPromotionLimit() {
        return flashPromotionLimit;
    }

    public void setFlashPromotionLimit(Integer flashPromotionLimit) {
        this.flashPromotionLimit = flashPromotionLimit;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "SmsFlashPromotionProductRelation{" +
                "id=" + id +
                ", flashPromotionId=" + flashPromotionId +
                ", flashPromotionSessionId=" + flashPromotionSessionId +
                ", productId=" + productId +
                ", flashPromotionPrice=" + flashPromotionPrice +
                ", flashPromotionCount=" + flashPromotionCount +
                ", flashPromotionLimit=" + flashPromotionLimit +
                ", sort=" + sort +
                '}';
    }
}